/*move.cpp*/

#include <iostream>
#include <iomanip>
#include "move.h"
using namespace std;
Move::Move(double a, double b)       // sets x, y to a, b
{
	x=a;
	y=b;
}

void Move::showmove() const                       // shows current x,y values
{
	cout<<"x = "<<x<<setw(10)<<", y = "<<y<<endl;
}
Move & Move::add(const Move & m) const
{
	Move newm;
	newm.y = m.y + this->y;
	newm.x = m.x + this->x;
	return newm;
}
void Move::reset(double a ,double b)      // resets x,y to a, b
{
	x=a;
	y=b;
}


